public class Dog extends Animal {
    // 成员变量省略
  
    @Override
    public void eat() {
      System.out.println("狗吃肉，吃狗粮");
    }
  
    @Override
    public void sleep() {
      System.out.println("狗趴着睡，睡狗窝");
    }
  
  }